package com.szamc.tableroundapi.model.RecursionTable;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class RecursionTableFormatData {
    private String  id;// 序号 = rowIndex_columnIndex
    private int rowIndex;
    private int columnIndex;
    private double value;
    private List<Integer> rowGroupIndexPathList;
    private Integer columnGroupIndex;
    private  double adjustValue;
    private  double floorValue;
    private  double decimalPart ;
    private int valueType;


    public RecursionTableFormatData(String id, int rowIndex, int columnIndex, double value, List<Integer> rowGroupIndexPathList, Integer columnGroupIndex,int valueType) {
        this.id = id;
        this.rowIndex = rowIndex;
        this.columnIndex = columnIndex;
        this.value = value;
        this.rowGroupIndexPathList = rowGroupIndexPathList;
        this.columnGroupIndex = columnGroupIndex;
        this.floorValue = Math.floor(value);
        this.decimalPart = value-Math.floor(value);
        this.valueType = valueType;
    }
}
